package server;

import java.util.Date;

public class Answer {

	private String answer;
	private Date   time;
	
	/**
	 * Constructs an Answer object containing the player answer and the time it were received.
	 * @param answer the answer from a player
	 */
	public Answer(String answer){
		this.answer = answer;
		this.time = new Date();
	}

	public String getAnswer() {
		return answer;
	}

	public long getTime() {
		return time.getTime();
	}
	
}
